function usernamefocus(){
	
	var username  = Utils.trim($("#username").val());
	var msg = '';
	  if (username == "")
	  {
		$("#username_notice").text("请输入用户名");
		msg = 'username';
	  }
	  if(msg != ""){
		return false;
	  }
	  
  $.ajax({
	    type: "POST",
	    url: "./ajax_chkusername.php",
		data: "act=chkusernametj&username="+username,
		dataType: "text",
		beforeSend: function(){
		    $("#username_notice").text("稍等...");
		},
		success: function(data){
			
			var dataary=data.split(':');
			if(dataary[0].indexOf('send_success')!=-1){
					if (dataary[1]==1)
				    $("#username_notice").text(dataary[2]);
					else
					$("#username_notice").text(dataary[2]);
			}else{
				    $("#username_notice").text("出错了！");
			}
		}
	});
}
function tjuserfocus(){
	
	var tjuser  = Utils.trim($("#tjuser").val());
	var msg = '';
	  if (tjuser == "")
	  {
		$("#tjuser_notice").text("请输入新推荐人编号");
		msg = 'tjuser';
	  }
	  if(msg != ""){
		return false;
	  }
	  
  $.ajax({
	    type: "POST",
	    url: "./ajax_chkusername.php",
		data: "act=chktjuserxg&tjuser="+tjuser,
		dataType: "text",
		beforeSend: function(){
		    $("#tjuser_notice").text("稍等...");
		},
		success: function(data){
			var dataary=data.split(':');
			if(dataary[0].indexOf('send_success')!=-1){
					if (dataary[1]==1)
				    $("#tjuser_notice").text(dataary[2]);
					else
					$("#tjuser_notice").text(dataary[2]);
			}else{
				    $("#tjuser_notice").text("出错了！");
			}
		}
	});
}